import React, { Component } from 'react';
import { Router, Route, Link, browserHistory,IndexRoute } from 'react-router'

import App from './app';
import Home from './home';
import House from './console/house'
import Customer from './console/customer'

export default class Routes extends Component {
    render() {
        return (
            <Router history={browserHistory}>
                <Route path="/" component={App}>
                    <IndexRoute component={Home}/>
                    <Route path="house" component={House}/>
                    <Route path="customer" component={Customer}/>
                </Route>
            </Router>
        );
    }
}
